<?php defined('LFNC_PACKAGE') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: mysql_fetch_rows.lfnc.php 262 2009-06-19 05:31:16Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/mysql/mysql_fetch_rows.lfnc.php $
*/


function mysql_fetch_rows($dbr, $result_type = MYSQL_ASSOC) {
	if (mysql_num_rows($dbr) >= 1) mysql_data_seek($dbr, 0);
	$rows = array();
	while ($row = mysql_fetch_array($dbr, $result_type)) $rows[] = $row;
	return $rows;
}


?>